/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tpgen.patterns;

import tpgen.grammar.Variable;

/**
 *
 * @author shanki
 */
public class EqHet implements Transformation {

    protected Variable a;
    protected Variable b;

    public EqHet(Variable a, Variable b) {
        this.a = a;
        this.b = b;
    }
    
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("     <eqHet ");
        sb.append("op1=\"");
        sb.append(a.toString());
        sb.append("\" op2=\"");
        sb.append(b.toString());
        sb.append("\"/>\n");
        
        return sb.toString();
    }    

    @Override
    public Variable getLeft() {
        return a;
    }

    @Override
    public Variable getRight() {
        return b;
    }
    
}